package cn.enjoy.sharding.mapper;

import cn.enjoy.sharding.entity.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author K
 * @date 2022/1/14 17:28
 */
@Mapper
public interface CourseMapper extends BaseMapper<Course> {

    @Select("select * from course where id = #{id} limit 1")
    Course getLimit(Long id);

}
